<?php

	class SetBoutiqueMapsCommand implements ICommand
	{
		public function execute($event)
		{
			$lat = $event->data['lat'];
			$lon = $event->data['lon'];
			$bo_id = $event->data['bo_id'];
			$ref = $event->data['ref'];
			
			$boutique = (object) array('lat' => $lat,'lon' => $lon,'bo_id' => $bo_id);
			
			EbModel::getModel('VarPeople','Boutique')->update($boutique);
			
			return new Event('redirect',$ref);
		}
	}